package com.miaomiao.controller.system;

import com.miaomiao.common.Result;
import com.miaomiao.domain.system.User;
import com.miaomiao.utils.SecurityUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class CommonController {

//    @GetMapping("/info")
//    @PreAuthorize("@ss.hasPermis('system:home')")
//    public Result hello(){
//        User user = SecurityUtils.getLoginUser().getUser();
//        return Result.success("获取成功",user);
//    }

//    @PostMapping("/testCors")
//    @PreAuthorize("@ss.hasPermis('system:test:list')")
//    public Result testCors(){
//        return Result.success("testCors");
//    }
}
